package com.loopy.utils;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;

public class WebUtils {
    public static int parseInt(String num,int defaultval){
        try {
            return Integer.parseInt(num);
        } catch (NumberFormatException e) {
            System.out.println(num+"格式错误");
        }
         return defaultval;
    }
}
